//
//  SNMyArtelCell.m
//  ZhuoxinAgriculture
//
//  Created by stone on 16/12/17.
//  Copyright © 2016年 stone. All rights reserved.
//

#import "SNMyArtelCell.h"

@interface SNMyArtelCell()
@property (weak, nonatomic) IBOutlet UILabel *keyLabel;


@end
@implementation SNMyArtelCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)configWithModel:(SNMyArtelResult *)model indexPath:(NSIndexPath *)indexPath{
    _model = model;
    
    switch (indexPath.row) {
        case 0:
            self.keyLabel.text = @"组织名称";
            self.valueLabel.text = model.fullName;
            break;
        case 1:
            self.keyLabel.text = @"组织地址";
            self.valueLabel.text = model.regaddr;
            break;
        case 2:
            self.keyLabel.text = @"组织机构代码";
            self.valueLabel.text = model.orgCode;
            break;
        case 3:
            self.keyLabel.text = @"营业执照";
            self.valueLabel.text = model.bussinessLic;//model.ADDRESS;
            break;
        case 4:
            self.keyLabel.text = @"注册号";
            self.valueLabel.text = model.brandsNo;
            break;
        case 5:
            self.keyLabel.text = @"成立日期";
            self.valueLabel.text = model.establishDate;
            break;
        case 6:
            self.keyLabel.text = @"法定代表人";
            self.valueLabel.text = model.legalName;
            break;
        case 7:
            self.keyLabel.text = @"组织成员";
            self.valueLabel.text = [NSString stringWithFormat:@"%ld人",model.memberList.count];
            break;
        default:
            break;
    }
    
    
}

@end
